<%--
Copyright 2014 Google Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>

<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

<link type="text/css" rel="stylesheet" href="/stylesheets/reset.css"></link>
<link type="text/css" rel="stylesheet" href="/stylesheets/gp.css"></link>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

<title>Generic Publication - Sign in</title>
</head>
<body>
  <div class="header">
    Generic Publication
  </div>

  <div class="content">

    <div class="form">
      <div class="help-txt">Sign in to your Generic Publication account</div>

      <c:if test="${not empty message}">
      <div class="msg">
        <c:out value="${message}" />
        <br />
      </div>
      </c:if>

      <form action="/login" method="post">
        <div class="form-field">
          <input name="continueUrl" type="hidden" value="${param.continueUrl}" />
          <label for="name">Email address</label> <input name="name" type="text"
            value="${param.name}" />
        </div>
        <div class="form-field">
          <label for="password">Password</label> <input name="password"
            type="password" />
        </div>
        <div class="forgot-password">
        <a target="_blank" href="https://genericpublication.com/forgot-password">Forgot password?</a>
        </div>
        <input class="btn" name="submit" type="submit" value="Sign in" />
        <div class="cancel">
        <a href="${requestScope.cancelUrl}">Cancel</a>
        </div>
      </form>
    </div>

    <div class="contact">
      
      <table>
        <tr>
        <td>
        Any questions? Email <a href="mailto:help@genericpublication.com">help@genericpublication.com</a>
        </td>
        </tr>
      </table>
    </div>
  </div>
</body>
</html>
